import request from '../utils/fetch'

export function getMessageCount (data) {
  return request({
    url: '/admin/message/getMessageCount',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function getSendMessageList (data) {
  return request({
    url: '/admin/message/getSendMessageList',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function deleteMessage (data) {
  return request({
    url: '/sysMessage/delete',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function addSysMsg (data) {
  return request({
    url: '/sysMessage/addSysMsg',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}
export function getMessageList (data) {
  return request({
    url: '/admin/message/getMessageList',
    method: 'get',
    requestBody: 'query',
    loading: true,
    data: data
  })
}
export function batchDelSend (data) {
  return request({
    url: '/admin/message/batchDelSend',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}